/*
 * @Author: your name
 * @Date: 2021-12-24 16:20:11
 * @LastEditTime: 2021-12-24 16:27:27
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \first_one_file\react-travel\src\components\filter\FilterTag.tsx
 */
import React, { useState } from 'react';
import { Tag } from 'antd';
const { CheckableTag } = Tag;

interface PropsType {
  onSelect?: () => void
}

export const FilterTag: React.FC<PropsType> = (props) => {
  const [checked, setChecked] = useState(false);

  const handleChange = (checked: any) => {
    setChecked(checked);
  }

  return <CheckableTag {...props} checked={checked} onChange={handleChange} />
}
